<div class="row">
  <div class="span2 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
<div class="span10">
<*if $result*>
<div class="page" style="clear:both; padding-top:30px; "><*$page*></div>
<*foreach from=$result item=item key=key*>
  <div class="span5" style=" height:150px; overflow:hidden;margin-top:10px; margin-left:0px; padding:0px;"> 
	   <div class="span2" style="margin-left:0px; padding:0px;">
       		<a href="http://cloud.yunxiaoche.com/shop/<*$item.filename*>.jpg" target="_blank"><img src="http://cloud.yunxiaoche.com/shop/<*$item.filename*>.jpg" class="img-rounded"></a>
       </div>
       <div class="span3" style="margin-left:2px;padding:0px; margin-top:0px;">
       		<ul class="unstyled" style="margin-left:0px; padding-left:5px;">
            	<li><*$item.goodsname|smartTruncate:6:'……'*></li>
                <li>单价：<*$item.price*></li>
                <li>&nbsp;</li>
                <li>
                    <input type="button" class="btn btn-primary"  id="edit" value="编辑" onclick="window.location='/<*$controller*>/editdown/gid/<*$item.goodsid*>'" >
                    <input type="button" class="btn"  id="up" value="上架" onclick="upit(<*$item.goodsid*>,<*$pagenum*>)" >                    
                    <input type="button" class="btn"  id="delete" value="删除" onclick="deleteit(<*$item.goodsid*>,<*$pagenum*>)" >
                </li>
            </ul>
       </div>	  		
  </div>
<*/foreach*>  
<div class="page" style="clear:both; padding-top:30px; "><*$page*></div>
<*else*>
暂时没有下架的商品！
<*/if*>
</div>
</div>
<script type="text/javascript">
  function deleteit(gid,page)
{
  if(confirm("确定要删除吗？")){
   window.location='/<*$controller*>/deleteabs/gid/'+gid+'/page/'+page;
  }
} 
  function upit(gid,page)
{
  if(confirm("确定要上架吗？")){
   window.location='/<*$controller*>/up/gid/'+gid+'/page/'+page;
  }
} 
</script> 
